package main

import "fmt"

func jiecheng(num int) int {
	if num <= 1 {
		return 1
	} else {
		return num * jiecheng(num-1)
	}
}
func main() {
	fmt.Println(jiecheng(5))
}
